package com.ruoyi.system.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.TourismActiviteSignMapper;
import com.ruoyi.system.domain.TourismActiviteSign;
import com.ruoyi.system.service.ITourismActiviteSignService;

/**
 * 活动报名Service业务层处理
 * 
 * @author gqd
 * @date 2021-01-16
 */
@Service
public class TourismActiviteSignServiceImpl implements ITourismActiviteSignService 
{
    @Autowired
    private TourismActiviteSignMapper tourismActiviteSignMapper;

    /**
     * 查询活动报名
     * 
     * @param id 活动报名ID
     * @return 活动报名
     */
    @Override
    public TourismActiviteSign selectTourismActiviteSignById(Long id)
    {
        return tourismActiviteSignMapper.selectTourismActiviteSignById(id);
    }

    /**
     * 查询活动报名列表
     * 
     * @param tourismActiviteSign 活动报名
     * @return 活动报名
     */
    @Override
    public List<TourismActiviteSign> selectTourismActiviteSignList(TourismActiviteSign tourismActiviteSign)
    {
        return tourismActiviteSignMapper.selectTourismActiviteSignList(tourismActiviteSign);
    }

    /**
     * 新增活动报名
     * 
     * @param tourismActiviteSign 活动报名
     * @return 结果
     */
    @Override
    public int insertTourismActiviteSign(TourismActiviteSign tourismActiviteSign)
    {
        tourismActiviteSign.setCreateTime(DateUtils.getNowDate());
        return tourismActiviteSignMapper.insertTourismActiviteSign(tourismActiviteSign);
    }

    /**
     * 修改活动报名
     * 
     * @param tourismActiviteSign 活动报名
     * @return 结果
     */
    @Override
    public int updateTourismActiviteSign(TourismActiviteSign tourismActiviteSign)
    {
        return tourismActiviteSignMapper.updateTourismActiviteSign(tourismActiviteSign);
    }

    /**
     * 批量删除活动报名
     * 
     * @param ids 需要删除的活动报名ID
     * @return 结果
     */
    @Override
    public int deleteTourismActiviteSignByIds(Long[] ids)
    {
        return tourismActiviteSignMapper.deleteTourismActiviteSignByIds(ids);
    }

    /**
     * 删除活动报名信息
     * 
     * @param id 活动报名ID
     * @return 结果
     */
    @Override
    public int deleteTourismActiviteSignById(Long id)
    {
        return tourismActiviteSignMapper.deleteTourismActiviteSignById(id);
    }
}
